package com.group.itms.routes.activities;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.group.itms.routes.R;
import com.group.itms.routes.services.SyncManager;

public class UpdateDialogActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_ask_update);
		((Button) findViewById(R.id.yes)).setOnClickListener(new OnClickListener() {

					@Override
					public void onClick(View v) {
						SyncManager.getInstance().startSync();
						finish();
					}
				});
		((Button) findViewById(R.id.no)).setOnClickListener(new OnClickListener() {

					@Override
					public void onClick(View v) {
						finish();
					}
				});
	}

}
